package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 获取话题热门动态DTO
 */
@Data
@ApiModel("获取话题热门动态DTO")
public class GetTopicHotDynamicDTO extends PageDTO{

    @ApiModelProperty("话题id")
    @Min(value = 1,message = "话题id不可小于1")
    @NotNull(message = "话题id不能为空")
    private Integer topicId;
}
